import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    redirect: '/index',
  },
  {
    path: '/index',
    component: () => import('../views/Index.vue'),

  },
  {
    path: '/circle',
    component: () => import('../views/Circle.vue'),
  },
  {
    path: '/cart',
    component: () => import('../views/Cart.vue'),
  },
  {
    path: '/mine',
    component: () => import('../views/Mine.vue'),
  },
  {
    path: '/login',
    component: () => import('../views/Login.vue'),
  },
  {
    path: '/resgister',
    component: () => import('../views/Resgister.vue'),
  },
  {
    path: '/orderform',
    component: () => import('../views/OrderForm.vue'),
  },
  {
    path: '/lianxikefu',
    component: () => import('../views/LianxiKefu.vue'),
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
